﻿// Copyright 2009 Mike Geise
// 
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// 
//     http://www.apache.org/licenses/LICENSE-2.0
// 
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

namespace Falcon.Core.Domain
{
	using Falcon.Core.Extensions;

	public partial class Settings
	{
		public static string Title
		{
			get
			{
				return GetByKey("settings.title");
			}
		}

		public static string Url
		{
			get
			{
				return GetByKey("settings.url");
			}
		}

		public static string Email
		{
			get
			{
				return GetByKey("settings.email");
			}
		}

		public static string ErrorView
		{
			get
			{
				return GetByKey("settings.error.view");
			}
		}

		public static string StatusView
		{
			get
			{
				return GetByKey("settings.status.view");
			}
		}

		public static string ImagePath
		{
			get
			{
				return GetByKey("settings.image.path");
			}
		}

		public static int PageLimit
		{
			get
			{
				return GetByKey("settings.page.limit").AsInt();
			}
		}

		public static SettingsAsValuesAttachments Attachments
		{
			get
			{
				return new SettingsAsValuesAttachments();
			}
		}

		public static SettingsAsValuesCountries Countries
		{
			get
			{
				return new SettingsAsValuesCountries();
			}
		}

		public static SettingsAsValuesUsers Users
		{
			get
			{
				return new SettingsAsValuesUsers();
			}
		}

		public static SettingsAsValuesPolls Polls
		{
			get
			{
				return new SettingsAsValuesPolls();
			}
		}

		public static SettingsAsValuesResources Resources
		{
			get
			{
				return new SettingsAsValuesResources();
			}
		}

		public static SettingsAsValuesTimeZones TimeZones
		{
			get
			{
				return new SettingsAsValuesTimeZones();
			}
		}

		public static SettingsAsValuesTemplates Templates
		{
			get
			{
				return new SettingsAsValuesTemplates();
			}
		}
	}
}